FROM       mysql:8.0.21
RUN        ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime;
ENV        TZ 'Asia/Shanghai'
COPY       config/my.cnf /etc/mysql/conf.d/my.cnf
COPY       init /docker-entrypoint-initdb.d
EXPOSE     3306
VOLUME     /var/lib/mysql